package pers.mihao.quickstream.common.task.repository.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pers.mihao.quickstream.common.mapper.CommonMapper;
import pers.mihao.quickstream.common.task.repository.domain.AutomaticTaskDO;

/**
 * @author mihao
 * @since 2024/11/14
 */
@Mapper
public interface AutomaticTaskMapper extends CommonMapper<AutomaticTaskDO> {

    int updateStatus(@Param("id") Long id, @Param("newStatus") String newStatus, @Param("version") int version);

}
